home *** CD-ROM | disk | FTP | other *** search
- 'Copyright (C) Andrew S. Dean 1993-95
- Option Explicit
-
- Sub CenterForm (F As Form)
- ' Center the specified form within the screen
- F.Move (Screen.Width - F.Width) \ 2, (Screen.Height - F.Height) \ 2
- End Sub ' CenterForm()
-
- Sub UnloadOnEscape (KeyAscii As Integer)
- ' Escape Key disables all dialogs.
- ' This relies on KeyPreview being set for the form.
- If (KeyAscii = KEY_ESCAPE) Then
- Unload Screen.ActiveForm
- End If
- End Sub
-
-